package cn.cycleif.init.execute;

import cn.cycleif.init.execute.base.AbstractApplicationExecute;
import jakarta.annotation.PostConstruct;
import org.springframework.context.ConfigurableApplicationContext;

import static cn.cycleif.init.constant.InitializeHandlerType.APPLICATION_POST_CONSTRUCT;

/**
 * @Date: 25/1/17-18:57
 * @Desc:
 */
public class ApplicationPostConstructExecute extends AbstractApplicationExecute {

  public ApplicationPostConstructExecute(ConfigurableApplicationContext applicationContext){
    super(applicationContext);
  }

  @PostConstruct
  public void postConstructExecute() {
    execute();
  }

  @Override
  public String type() {
    return APPLICATION_POST_CONSTRUCT;
  }
}

